package com.xzx.springbootredis.service;

import com.xzx.springbootredis.entity.Goods;
import com.xzx.springbootredis.utils.JsonResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface GoodsService {
    JsonResult addGoods(Goods goods, MultipartFile mainImage) throws Exception;
    List<Goods> getOnSaleGoodsOrderBySales();
    Goods getGoodsById(Long id);
}
